<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
        img{
            width: 200px;
            height: 200px;
        }
        .box{
            width: 200px;
            height: 200px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div id="app">
        <!-- 
            v-bind 属性绑定
                v-bind:属性='属性值'
                :属性='属性值'
         -->
         <a v-bind:href="info.href" v-bind:target="info.target">{{ info.con }}</a>
         <img :src="imgs.src"  :alt="imgs.alt"  v-bind:title="imgs.title">
         <div :class="classname">abc</div>
    </div>
    <script>
         new  Vue({
            el:"#app",
            data:{
                info:{
                    con:"百度",
                    href:"https://www.baidu.com",
                    target:"_blank"
                },
                imgs:{
                    src:"https://v2.cn.vuejs.org/images/logo.svg",
                    alt:"暂无图片",
                    title:"vue"
                },
                classname:"box"
            }
        })
    </script>
</body>
</html>